package com.glory.hikvisionmobile.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.bean.TrackOut.HoldListBean;

import java.util.List;

public class TrackOutHoldListAdapter extends BaseQuickAdapter<HoldListBean, BaseViewHolder> {

    public TrackOutHoldListAdapter(@Nullable List<HoldListBean> data) {
        super(R.layout.adapter_param_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HoldListBean item) {
        helper.setText(R.id.tvItem1,item.getHoldCode());
        helper.setText(R.id.tvItem2,item.getHoldReason());
        helper.setText(R.id.tvItem3,item.getHoldComment());
        helper.setText(R.id.tvItem4,item.getHoldOwner());
        helper.setGone(R.id.tvItem5,false);
    }
}
